home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / Apple II / Essentials / APW Interfaces / CInclude / StdFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-26  |  3.4 KB  |  122 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: StdFile.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-92
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9.  
  10. #ifndef __TYPES__
  11. #include <TYPES.h>
  12. #endif
  13.  
  14. #ifndef __STDFILE__
  15. #define __STDFILE__
  16.  
  17.  
  18. /* Error Codes */
  19. #define badPromptDesc 0x1701
  20. #define badOrigNameDesc 0x1702
  21. #define badReplyNameDesc 0x1704
  22. #define badReplyPathDesc 0x1705
  23. #define badCall 0x1706
  24. #define sfNotStarted 0x17FF
  25.  
  26. /* filterProc Result Codes */
  27. #define noDisplay 0x0000  /* file not to be displayed */
  28. #define noSelect 0x0001  /* file displayed, but not selectable */
  29. #define displaySelect 0x0002  /* file displayed and selectable */
  30.  
  31. /* Other Constants */
  32. #define sfWildAuxType 0x8000
  33. #define sfMatchFileType 0x8000
  34. #define sfWildFileType 0x4000
  35. #define sfMatchAuxType 0x4000
  36. #define sfDisplayGrey 0x2000
  37. #ifndef sfFileTypeEntriesLength  /* SFTypeList - default number of FileTypeEntries */
  38. #define sfFileTypeEntriesLength 0x0005
  39. #endif
  40.  
  41. typedef struct SFReplyRec {
  42.    Boolean good;
  43.    Word fileType;
  44.    Word auxFileType;
  45.    char filename[16];
  46.    char fullPathname[129];
  47. } SFReplyRec, *SFReplyRecPtr, **SFReplyRecHndl;
  48.  
  49. struct SFReplyRec2 {
  50.    Boolean good;
  51.    Word fileType;
  52.    LongWord auxType;
  53.    RefDescriptor nameRefDesc;
  54.    Ref nameRef;
  55.    RefDescriptor pathRefDesc;
  56.    Ref pathRef;
  57. } ;
  58. typedef struct SFReplyRec2 SFReplyRec2, *SFReplyRec2Ptr, **SFReplyRec2Hndl;
  59.  
  60. struct fileEntryRec {
  61.     Word    fileType;
  62.     unsigned long    auxType;
  63.     Byte    nameLength;
  64.     Byte    prefix1;
  65.     Byte    prefix2;
  66.     char    name[253];
  67. } ;
  68. typedef struct fileEntryRec fileEntryRec, *fileEntryRecPtr;
  69.  
  70. struct namesHandleRec {
  71.     Word    bufferLength;
  72.     fileEntryRec fileEntryArray[1];
  73. } ;
  74. typedef struct namesHandleRec namesHandleRec, *namesHandleRecPtr, **namesHandleRecHndl;
  75.  
  76. struct MultiReplyRecord {
  77.    Word good;
  78.    namesHandleRecHndl namesHandle;
  79. } ;
  80. typedef struct MultiReplyRecord MultiReplyRecord, *MultiReplyPtr;
  81.  
  82. struct SFTypeList {
  83.    Byte numEntries;
  84.    Byte fileTypeEntries[sfFileTypeEntriesLength];
  85. } ;
  86. typedef struct SFTypeList SFTypeList, *SFTypeListPtr, **SFTypeListHndl;
  87.  
  88. struct TypeSelector2 {
  89.    Word flags;
  90.    Word fileType;
  91.    LongWord auxType;
  92. } ;
  93. typedef struct TypeSelector2 TypeSelector2;
  94.  
  95. struct SFTypeList2 {
  96.    Word numEntries;
  97.    TypeSelector2 fileTypeEntries[sfFileTypeEntriesLength];
  98. } ;
  99. typedef struct SFTypeList2 SFTypeList2, *SFTypeList2Ptr, **SFTypeList2Hndl;
  100.  
  101. extern pascal void SFAllCaps() inline(0x0D17,dispatcher);
  102. extern pascal void SFBootInit() inline(0x0117,dispatcher);
  103. extern pascal void SFGetFile() inline(0x0917,dispatcher);
  104. extern pascal void SFGetFile2() inline(0x0E17,dispatcher);
  105. extern pascal void SFMultiGet2() inline(0x1417,dispatcher);
  106. extern pascal void SFPGetFile() inline(0x0B17,dispatcher);
  107. extern pascal void SFPGetFile2() inline(0x1017,dispatcher);
  108. extern pascal void SFPMultiGet2() inline(0x1517,dispatcher);
  109. extern pascal void SFPPutFile() inline(0x0C17,dispatcher);
  110. extern pascal void SFPPutFile2() inline(0x1117,dispatcher);
  111. extern pascal void SFPutFile() inline(0x0A17,dispatcher);
  112. extern pascal void SFPutFile2() inline(0x0F17,dispatcher);
  113. extern pascal void SFReScan() inline(0x1317,dispatcher);
  114. extern pascal void SFReset() inline(0x0517,dispatcher);
  115. extern pascal Boolean SFShowInvisible() inline(0x1217,dispatcher);
  116. extern pascal void SFShutDown() inline(0x0317,dispatcher);
  117. extern pascal void SFStartUp() inline(0x0217,dispatcher);
  118. extern pascal Boolean SFStatus() inline(0x0617,dispatcher);
  119. extern pascal Word SFVersion() inline(0x0417,dispatcher);
  120.  
  121. #endif
  122.